I have tried using pip -m install win32api, but I still get the error "can't open file 'pip': [Errno 2] No such file or directory"
Can anyone help me on this?
Note: I have renamed the python.exe file as python2 and python3, since I have both versions installed on my pc.
python -m pip install pypiwin32
This should solve the issue. Note that the package name you used is not the canonical name.
Depending on your python interpreter environment variable path, you need to either py -m pip install win32api
or
Use python -m pip install win32api
In my case, py -m pip install win32api worked but python -m pip install win32api didn't
I had the same error message while trying to lunch the command "manage.py". I solved the problem by writing the command in python shell after entering the folder where the files django-admin.exe and django-admin.py are. Please see screen-shot attached.